package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Date:2020/9/29
 * Author:ybc
 * Description:
 */
@Controller
public class RestController {

    @RequestMapping(value = "/testGET", method = RequestMethod.GET)
    public String testGET(){
        return "success";
    }

    @RequestMapping(value = "/testPOST", method = RequestMethod.DELETE)
    public String testPOST(String username, String password){
        System.out.println(username+","+password);
        return "success";
    }

    /*@RequestMapping("/success")
    public String success(){
        return "success";
    }*/

}
